package com.jmlee.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 秒杀商品
 */
public class AItemSecKill {
    /*
    商品ID
    */
    private Long id;
    /*
    商品名
     */
    private String itemName;
    /*
    子分类ID
     */
    private Long catId;
    /*
    商品上下架状态
    1、上架
    2、下架
    3、特选商品待审核
    */
    private Integer onOffStatus;
    /*
    库存
     */
    private Integer stock;
    /*
    原价
     */
    private BigDecimal price;
    /*
    商品内容
    */
    private String content;

    /*
    创建日期
    */
    private Date createdTime;
    /*
    创建日期
    */
    @JsonFormat(locale = "zh" , timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss")
    private Date expiredTime;
    /*
    商铺ID
    */
    private Long shopId;

    /*
    商品图片
    */
    private String icon;

    public AItemSecKill() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public Long getCatId() {
        return catId;
    }

    public void setCatId(Long catId) {
        this.catId = catId;
    }

    public Integer getOnOffStatus() {
        return onOffStatus;
    }

    public void setOnOffStatus(Integer onOffStatus) {
        this.onOffStatus = onOffStatus;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getExpiredTime() {
        return expiredTime;
    }

    public void setExpiredTime(Date expiredTime) {
        this.expiredTime = expiredTime;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }


    @Override
    public String toString() {
        return "AItemSecKill{" +
                "id=" + id +
                ", itemName='" + itemName + '\'' +
                ", catId=" + catId +
                ", onOffStatus=" + onOffStatus +
                ", stock=" + stock +
                ", price=" + price +
                ", content='" + content + '\'' +
                ", createdTime=" + createdTime +
                ", expiredTime=" + expiredTime +
                ", shopId=" + shopId +
                ", icon='" + icon + '\'' +
                '}';
    }
}
